how to factor sum of cubes